package com.fdb.efp.nls.service.dao;

import com.fdb.efp.nls.service.domain.RscWarnAcctDetail;
import com.fdb.efp.nls.service.domain.RscWarnAcctDetailTmp;
import com.fdb.efp.nls.service.vo.RscWarnAcctDetailVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>DAO interface:存款账户支出明细表				<p>
 * @author chenqm1
 * @date 2018-05-29
 */
public interface RscWarnAcctDetailDao {
	
	public int insertRscWarnAcctDetail(RscWarnAcctDetail rscWarnAcctDetail);
	
	public int deleteByPk(RscWarnAcctDetail rscWarnAcctDetail);
	
	public int updateByPk(RscWarnAcctDetail rscWarnAcctDetail);
	
	public RscWarnAcctDetail queryByPk(RscWarnAcctDetail rscWarnAcctDetail);
	
	public List<RscWarnAcctDetail> queryAllOwnerByPage(RscWarnAcctDetailVO rscWarnAcctDetail);
	
	/**
     * 批量插入临时表
     * @param list
     * @return
     */
	public int batchInsertRscWarnAcctDetailTmp(@Param("list") List<RscWarnAcctDetailTmp> list);
	
	/**
	 * 将正式表信息转移到历史表
	 * @return
	 */
	public int insertRscWarnAcctDetailHisByTmp();
	
	/**
	 * 删除正式表数据
	 * @return
	 */
	public int deleteRscWarnAcctDetailByTmp();
	
	/**
     * 插入正式表数据
     * @return
     */
    public int insertRscWarnAcctDetailByTmp();
    
    /**
     * 删除临时表数据
     * @return
     */
    public int deleteRscWarnAcctDetailTmp();
	
}
